package com.franklin.ideaplugin.easytesting.configuration.ui;

import com.franklin.ideaplugin.api.ui.IBaseComponent;

import javax.swing.*;

/**
 * @author Ye Junhui
 * @since 2023/8/10
 */
public class UiConfigForm implements IBaseComponent {
    private JPanel mainPanel;
    private JSlider headerHeightSlider;
    private JSlider historyWidthSlider;

    public UiConfigForm(int headerHeight,int historyWidth) {
        this.headerHeightSlider.setValue(headerHeight);
        this.historyWidthSlider.setValue(historyWidth);
    }

    @Override
    public JComponent getMainPanel() {
        return this.mainPanel;
    }

    public int getHeaderHeight(){
        return this.headerHeightSlider.getValue();
    }

    public int getHistoryWidth(){
        return this.historyWidthSlider.getValue();
    }
}
